-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding picker #14
base: master
Are you sure you want to change the base?
Encoding picker #14
Conversation
src/camera_display.cpp
Outdated
@@ -185,11 +178,13 @@ CameraPub::CameraPub() | |||
this, SLOT(updateQueueSize())); | |||
queue_size_property_->setMin(1); | |||
|
|||
frame_rate_property_ = new FloatProperty("Frame Rate", -1, | |||
frame_rate_property_ = new FloatProperty("Frame Rate", 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change.
This isn't telling ogre to change the pixel format- when changing the encoding the underlying data doesn't change, but the colors get swapped in ros image viewers (which is wrong). (It looks like the hardcoded encodings currently in 7839c3a are wrong, blue and red channels are swapped, which may be the source of some confusion here.)
It would be nice if the user could be informed what the most efficient format is if they desire low cpu usage, or at least set that as the default. I assume having ogre originate the image in the desired format is more efficient than post processing the image with opencv to re-order color channels. |
3f0ad2a
to
6946422
Compare
Adds an EnumProperty that allows to change image encoding from rgb8/rgba8 to bgr8/bgra8.